package com.rimi.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("值班医生表")
public class Duty {

  @ApiModelProperty("ID")
  private long dutyId;

  @ApiModelProperty("医生ID")
  private long doctorsId;

  @ApiModelProperty("值班时间")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date appointmentTime;

  @ApiModelProperty("值班日期（星期几？）")
  private String week;

  @ApiModelProperty("起始时间")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date beginDate;

  @ApiModelProperty("结束时间")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date endDate;

}
